<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link href="skin/style.css" rel="stylesheet" media="screen" type="text/css" title="style"/>
	<link href="skin/style_portraits.css" rel="stylesheet" media="screen" type="text/css" title="style" />
	<script type="text/javascript" src="js/iframe.js"></script>
</head>
<body onload="SetTitle('Portraits');"  style="margin: 0;">
	
<?php

	$rootdir = './';
	
	include('menu_left.php');
	include_once('functions/portraits.php');
	
	$portraits = GetAllPortraits();
	
?>
	
	<div id="portraits-contenu">
		<?php
			if($portraits == false)
				echo '<p style="color: red; font-size: 80%;">Aucun portraits</p>';
			else
			{
				foreach($portraits as $portrait)
				{
					echo '
		<div style="margin-top: 10px;">
			<img width=812 src="images_portraits/' . $portrait['id'] . '.png"/>
			<p style="text-align: center;">' . stripslashes($portrait['texte']) . '</p>
		</div>
					';
				}
			}
		?>
	</div>
	<hr style="clear: both; visibility: hidden;"></hr>
	
</body>
</html>